package com.cy.pj.goods.pojo.controller;

import com.cy.pj.goods.pojo.Goods;
import com.cy.pj.goods.pojo.service.GoodsServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@Controller
@RequestMapping("/goods")
public class GoodsController {
    @Autowired
    private GoodsServiceImpl goodsService;
    @RequestMapping("/doGoodsUI")
    public String doGoodsUI(){
        List<Goods> list = goodsService.findGoods();
        return "list";//返回页面
    }
}
